package beautiful.butterfly.drds.binlog.handlers;

import beautiful.butterfly.drds.binlog.utils.Nettys;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ChannelDeRegisterChannelInboundHandler extends ChannelOutboundHandlerAdapter
{


    @Override
    public void deregister(ChannelHandlerContext channelHandlerContext, ChannelPromise channelPromise) throws Exception
    {
        log.info("try to close socket by ChannelDeRegisterChannelInboundHandler.deregister()");
        Nettys.cleanChannelContext(channelHandlerContext, null);
        // ctx.deregister(promise);
    }
}
